﻿@model List<CMP.ERP.Model.Supplier>
@{
    Layout = null;
}
@Html.Action("Account_Show", "Account");
    <div class="content">
        <div class="right" id="mainFrame">
    <div class="header">
        <div class="header-right">
            <form method="post" action="/Experss/CustomInfo_Add">
                <div id="modal-container-973559" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:400px; margin-left:-150px;">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h3 id="myModalLabel">
                            供应商新增系统
                        </h3>
                    </div>
                    <div class="modal-body">

                        <table class="table table-hover table-bordered " style="width:400px;text-align:center;margin:0 auto;border:2px solid #428bca;">

                            <tbody>
                                <tr>
                                    <td>供应商名称:</td>
                                    <td><input type="text" name="Supplier_Name" required /></td>
                                </tr>
                                <tr>
                                    <td>地址:</td>
                                    <td><input type="text" name="Supplier_Address" required /></td>
                                </tr>
                                <tr>
                                    <td>联系人:</td>
                                    <td><input type="text" name="Supplier_Linkman" required /></td>
                                </tr>
                                <tr>
                                    <td>手机:</td>
                                    <td><input type="text" name="Supplier_Phone" required /></td>
                                </tr>
                                <tr>
                                    <td>备注:</td>
                                    <td><textarea id="TextArea1" rows="2" cols="20" name="Supplier_Remark"></textarea></td>
                                </tr>
                                <tr>
                                    <td>省份：</td>
                                    <td>
                                        @Html.DropDownList("P_Id")
                                    </td>
                                </tr>
                            </tbody>
                        </table>

                    </div>
                    <div class="modal-footer">
                        <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button> <button type="submit" class="btn btn-default"><span class="icon-inbox"></span>保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!-- 顶部 -->
    <div id="middle">
        <div class="Switch"></div>
        <script type="text/javascript">
            $(document).ready(function (e) {
                $(".Switch").click(function () {
                    $(".left").toggle();

                });
            });
        </script>
        <div class="right" id="mainFrame">
            <div class="right_cont">
                <ul class="breadcrumb">
                    当前位置：
                    <a href="/Home/Index">首页</a>
                    <span class="divider">/</span>
                    供应商
                </ul>
                <div class="title_right"><strong>供应商管理</strong></div>
                <div style="width:100%; margin-top:10px">
                    <div>
                        <form action="/Experss/Supplier_Select" method="get">
                            <table>
                                <tr>
                                    <td><input type="text" name="Supplier_Name" placeholder="请输入供应商名称" /></td>
                                    <td><button type="submit" class="btn btn-default" style="margin-bottom:10px"><span class="icon-search"></span>查询 </button></td>
                                    <td><button id="modal-973559" href="#modal-container-973559" role="button" type="button" class="btn btn-default" data-toggle="modal" style="margin-bottom:10px"><span class="icon-plus"></span>新增</button></td>
                                </tr>
                            </table>
                        </form>
                    </div>
                    <div style="margin-top:20px;">
                        <table class="table  table-hover table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th style="text-align:center">供应商编码</th>
                                    <th style="text-align:center">供应商名称</th>
                                    <th style="text-align:center">地址</th>
                                    <th style="text-align:center">联系人</th>
                                    <th style="text-align:center">手机</th>
                                    <th style="text-align:center">备注</th>
                                    <th style="text-align:center">省份</th>
                                    <th style="text-align:center">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach (var item in Model)
                                {
                                    <tr>
                                        <td style="text-align:center">@item.Supplier_Id</td>
                                        <td style="text-align:center">@item.Supplier_Name</td>
                                        <td style="text-align:center">@item.Supplier_Address</td>
                                        <td style="text-align:center">@item.Supplier_Linkman</td>
                                        <td style="text-align:center">@item.Supplier_Phone</td>
                                        <td style="text-align:center">@item.Supplier_Remark</td>
                                        <td style="text-align:center">@item.P_Name</td>
                                        <td style="text-align:center"><a href="/Experss/EditSupplier/@item.Supplier_Id"><span class="icon-edit"></span>更新</a>|<a href="/Experss/DelSupplier_Info/@item.Supplier_Id" onclick="return confirm('真的要删除吗？')"><span class="icon-remove"></span>删除</a></td>
                                    </tr>
                                }
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
   </div>
</div>
 





